package king.dominic.jlibrary.application;

import android.app.Application;

import king.dominic.jlibrary.util.Preference;

/**
 * Created by king on 2017/3/31.
 * OriginApplication
 */

@SuppressWarnings("AccessStaticViaInstance")
public abstract class OriginApplication<Component> extends Application {
    protected static OriginApplication sInstance;

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
        Preference.init(this);
    }
    public abstract Component getAppComponent();
}
